
#ifndef _MEMBER_BListItem_H_
#define _MEMBER_BListItem_H_

#include <BScrollBar>
#include <BListItem>
#include <BListWidget>

#define item_member(item)			((member_BListItem*)((BListItem*)item)->_ptr)

namespace BWE
{
	class member_BListItem
	{
	public:
		member_BListItem(BListItem* item);
		~member_BListItem();

		void dirtyCell();

		void setHost(BListWidget* listWidget);
		void adjust();

		BListItem*			boss;
		BListWidget*		list;
		Align				align;
		BString				text;
		BValue				value;
		BImageHolder		image;

		bool				dirty;
		BRect				rect;
		BSize				hintSize;
		BRect				imageRect;
		BSize				textSize;
		BRect				textRect;
		bool				selected;
		bool				visible;
	};
}

#endif